package com.company.test31;

import com.company.test30.StudentAddress;

import java.util.*;

/**
 * Created by v on 16-12-6.
 */
public class Main{
    public static void main(String[] args) throws Exception{
        int i=8<<3;
        System.out.println(i);
    }

    public static int hash(String key,int tableSize){
        int hashVal=0;

        for(int i=0;i<key.length();i++){
            hashVal=37*hashVal+key.charAt(i);
        }
        hashVal%=tableSize;
        if(hashVal<0)
            hashVal+=tableSize;
        return hashVal;
    }
}
